package com.alibaba.api.service;

import com.alibaba.api.pojos.Account;
import org.springframework.transaction.annotation.Transactional;

public interface AccountServiceApi{

    /**
     * 充值提现操作
     * @param money 钱
     * @param type 类型
     * @return
     */
    @Transactional
    boolean accountByMoney(Long id, Double money, Integer type);

    /**
     * 根据用户id查询账户信息
     * @param id
     * @return
     */
    Account findById(Long id);


    /**
     * 添加账户
     * @param account
     * @return
     */
    boolean insert(Account account);
}
